package com.itheima.health.dao;

import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingDao {
    /**
     * 根据日期查询
     * @param orderDate
     * @return
     */
    OrderSetting selectByOrderDate(@Param("orderDate") Date orderDate);

    /**
     * 根据id更新number
     * @param id
     * @param number
     */
    void updateNumberById(@Param("id") Integer id, @Param("number") int number);

    /**
     * 插入
     * @param orderSetting
     */
    void insert(OrderSetting orderSetting);

    List<OrderSetting> selectByOrderDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate);

    void updateReservationsById(@Param("reservations") Integer reservations, @Param("id") Integer id);
}
